<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>任务添加页面</title>
</head>
<body>
	<h1 align="center">发布新任务</h1>
<center>
<h3>
<s:form  action="admin_addtask" method="post">
	<s:hidden  name="admin.aid"/>
	<s:hidden name="admin.password" />	
	<s:textfield label="任务名" name="task.taskname"/>
	<s:textfield label="任务要求" name="task.context" />
	<s:textfield label="发布时间" name="task.createDate" ><s:param name="value"><s:date name="task.createDate" format="yyyy-MM-dd hh:mm:ss"/></s:param> </s:textfield>
	<s:select label="选择任务接收人" list="#ul" listKey="uid"  listValue="username" name="task.user.uid" value="1"/>
	<s:textfield label="截止时间" name="task.lastDate" ><s:param name="value"><s:date name="task.lastDate" format="yyyy-MM-dd hh:mm:ss"/></s:param> </s:textfield>
	<s:submit value="添加"/>
</s:form>
</h3>
</center>
</body>
</html>